﻿namespace OpenCompiler.Scanning.Scanners
{
	public class CompilerDirectivesScanner : StringMatchTokenScanner
	{
		public CompilerDirectivesScanner()
		{
			this.AddGrammar(CompilerDirectives.IF,"if");
			this.AddGrammar(CompilerDirectives.ENDIF, "endif");
			this.AddGrammar(CompilerDirectives.REGION, "region");
			this.AddGrammar(CompilerDirectives.ENDREGION, "endregion");
			this.AddGrammar(CompilerDirectives.PRAGMA, "pragma");

			this.Initialize();
		}

		protected override string Prefix { get { return "#"; } }
	}
}
